#pragma once

#ifndef _CSPAWNPOINTHANDLER_H_
#define _CSPAWNPOINTHANDLER_H_

#include "CChar.h"

/*DWORD WINAPI SpawnPointServ(LPVOID lpParam);

class CSpawnPointHandler
{
private: 
	//semaphore to lock access to spawnPointList
	static CSemaphore* CSpawnPointHandler::spawnPointListSemaphore[256];

public:
	static void initSpawnPointSemaphor(int zone);

	// list of spawn points
	static std::vector<struct spawnpoint> spawnPointList[256];

	static void lockSpawnPointList(int zone);
	static void unlockSpawnPointList(int zone);

	static void CSpawnPointHandler::addNode(CChar * schar, int spawnId);
	static void CSpawnPointHandler::deleteNode(CChar * schar, int spawnId);
	static void CSpawnPointHandler::deleteAllNodes(CChar * schar, int spawnId);
	static void CSpawnPointHandler::spawnNodes(CChar * schar, int spawnId);
	static void CSpawnPointHandler::despawnNodes(CChar * schar, int spawnId);
	static unsigned short CSpawnPointHandler::getNodeCount(unsigned short spawnId, unsigned char zone);
	static spawnpoint * CSpawnPointHandler::getSpawnPoint(unsigned short spawnId, unsigned char zone);
	static position CSpawnPointHandler::getNodePosition(unsigned short spawnId, unsigned short node, unsigned char zone);

private:
	CSpawnPointHandler(void);
	~CSpawnPointHandler(void);

};
*/
#endif
